﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace _5_01_单例模式
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void 普通模式ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmCommon frmCommon = new FrmCommon();
            frmCommon.MdiParent = this;
            frmCommon.Show();
        }

        private void 单例模式ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmSingle frmSingle = FrmSingle.CreateForm();
            frmSingle.MdiParent = this;
            frmSingle.Show();
        }
    }
}
